package com.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author 惊云
 * @date 2023/8/20 7:57
 */
@Data
public class Model {

    private User before;
    private User after;
    private Source source;

    private String op;

    @JSONField(name = "ts_ms",serialize = false,deserialize = false)
    private long tsMs;

    @Data
    public static class Source{
        private String version;
        private String connector;
        private String name;
        private int ts_ms;
        private String snapshot;
        private String db;
        private String sequence;
        private String table;
        private int server_id;
        private String gtid;
        private String file;
        private int pos;
        private int row;
        private String thread;
        private String query;
    }

    

}
